package com.paypal.android.a;

import android.content.Context;
import android.content.Intent;
import android.net.wifi.WifiInfo;
import android.net.wifi.WifiManager;
import android.telephony.TelephonyManager;
import com.paypal.android.MEP.PayPalActivity;
import com.paypal.android.MEP.b;
import com.paypal.android.MEP.i;
import com.paypal.android.MEP.r;
import java.io.ByteArrayInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStream;
import java.io.UnsupportedEncodingException;
import java.math.BigDecimal;
import java.net.InetAddress;
import java.net.NetworkInterface;
import java.net.SocketException;
import java.security.InvalidKeyException;
import java.security.KeyManagementException;
import java.security.KeyStoreException;
import java.security.NoSuchAlgorithmException;
import java.security.UnrecoverableKeyException;
import java.security.cert.CertificateException;
import java.security.cert.CertificateExpiredException;
import java.security.cert.CertificateFactory;
import java.security.cert.CertificateNotYetValidException;
import java.security.cert.X509Certificate;
import java.security.interfaces.RSAPublicKey;
import java.util.ArrayList;
import java.util.Date;
import java.util.Enumeration;
import java.util.Hashtable;
import java.util.List;
import java.util.Locale;
import java.util.Vector;
import javax.crypto.BadPaddingException;
import javax.crypto.Cipher;
import javax.crypto.IllegalBlockSizeException;
import javax.crypto.NoSuchPaddingException;
import javax.xml.parsers.DocumentBuilder;
import javax.xml.parsers.DocumentBuilderFactory;
import javax.xml.parsers.ParserConfigurationException;
import org.apache.http.HttpVersion;
import org.apache.http.client.methods.HttpPost;
import org.apache.http.conn.params.ConnPerRouteBean;
import org.apache.http.conn.scheme.PlainSocketFactory;
import org.apache.http.conn.scheme.Scheme;
import org.apache.http.conn.scheme.SchemeRegistry;
import org.apache.http.impl.client.DefaultHttpClient;
import org.apache.http.impl.conn.tsccm.ThreadSafeClientConnManager;
import org.apache.http.params.BasicHttpParams;
import org.apache.http.params.HttpParams;
import org.apache.http.params.HttpProtocolParams;
import org.w3c.dom.Document;
import org.w3c.dom.Node;
import org.w3c.dom.NodeList;
import org.xml.sax.SAXException;

public final class c
  implements r
{
  protected static com.paypal.android.c.a a = new k();
  protected static com.paypal.android.c.a b = new l();
  private static List k = new ArrayList();
  private static d l = null;
  private static byte[] m = { 48, -126, 3, 115, 48, -126, 2, 91, 2, 4, 77, 122, -66, 90, 48, 13, 6, 9, 42, -122, 72, -122, -9, 13, 1, 1, 5, 5, 0, 48, 126, 49, 11, 48, 9, 6, 3, 85, 4, 6, 19, 2, 85, 83, 49, 11, 48, 9, 6, 3, 85, 4, 8, 19, 2, 67, 65, 49, 17, 48, 15, 6, 3, 85, 4, 7, 19, 8, 83, 97, 110, 32, 74, 111, 115, 101, 49, 21, 48, 19, 6, 3, 85, 4, 10, 19, 12, 80, 97, 121, 80, 97, 108, 44, 32, 73, 110, 99, 46, 49, 20, 48, 18, 6, 3, 85, 4, 11, 12, 11, 115, 116, 97, 103, 101, 95, 99, 101, 114, 116, 115, 49, 34, 48, 32, 6, 3, 85, 4, 3, 12, 25, 115, 116, 97, 103, 101, 95, 109, 112, 108, 95, 101, 110, 99, 114, 121, 112, 116, 105, 111, 110, 95, 99, 101, 114, 116, 48, 30, 23, 13, 49, 49, 48, 51, 49, 50, 48, 48, 50, 57, 49, 52, 90, 23, 13, 51, 54, 48, 51, 48, 53, 48, 48, 50, 57, 49, 52, 90, 48, 126, 49, 11, 48, 9, 6, 3, 85, 4, 6, 19, 2, 85, 83, 49, 11, 48, 9, 6, 3, 85, 4, 8, 19, 2, 67, 65, 49, 17, 48, 15, 6, 3, 85, 4, 7, 19, 8, 83, 97, 110, 32, 74, 111, 115, 101, 49, 21, 48, 19, 6, 3, 85, 4, 10, 19, 12, 80, 97, 121, 80, 97, 108, 44, 32, 73, 110, 99, 46, 49, 20, 48, 18, 6, 3, 85, 4, 11, 12, 11, 115, 116, 97, 103, 101, 95, 99, 101, 114, 116, 115, 49, 34, 48, 32, 6, 3, 85, 4, 3, 12, 25, 115, 116, 97, 103, 101, 95, 109, 112, 108, 95, 101, 110, 99, 114, 121, 112, 116, 105, 111, 110, 95, 99, 101, 114, 116, 48, -126, 1, 34, 48, 13, 6, 9, 42, -122, 72, -122, -9, 13, 1, 1, 1, 5, 0, 3, -126, 1, 15, 0, 48, -126, 1, 10, 2, -126, 1, 1, 0, -103, -59, -112, -109, 34, 95, -44, 88, -8, 47, -24, 97, -96, 24, -27, -16, 96, 78, -96, 101, 96, -55, 117, -103, 29, 116, 85, 25, -52, 5, 71, -21, 1, -114, -57, -50, 36, -31, 103, 39, -58, 32, 21, -82, -3, 118, 42, 1, -93, -111, 114, -11, 73, 63, 99, 97, -26, 103, 97, 49, 39, 33, -12, 31, -40, 14, -100, -99, -80, -53, -105, -48, 28, 72, 53, 0, 89, -44, -97, -45, 39, -96, -9, 1, 73, -23, 58, 3, 126, -61, -86, 5, -64, -10, -107, -64, 50, 79, 64, 42, 114, 33, 121, 59, 121, -122, -105, 6, -70, 19, 83, -91, 48, -9, 78, 112, 91, 71, -30, -61, 3, 113, 84, -47, -9, 103, -4, 40, 20, -29, -95, -124, -125, -128, 42, -24, -37, 40, 74, -121, -45, -87, -10, -42, -63, 45, 111, -30, -3, 68, 8, -60, -22, -8, -25, -99, 12, -89, -117, 1, -95, -110, -1, -58, 12, -7, 59, -22, -61, 9, 122, -27, -52, -114, -92, 17, 59, -16, 95, -111, -124, -110, -31, -5, 116, -112, -121, -123, -11, -69, -24, 46, 117, -8, 120, -40, 101, -124, 70, 113, -79, -25, 120, -14, -49, -32, -53, -17, -4, -85, -102, 85, -85, 44, 95, 69, 92, -49, 3, -13, 14, 86, -74, 72, 93, -45, -114, 32, 43, -4, -95, -26, 118, -78, 122, -73, 25, 118, -82, -108, -66, 107, 98, -102, 91, 46, 123, 81, -113, 30, -54, 120, -44, -26, -84, -97, 2, 3, 1, 0, 1, 48, 13, 6, 9, 42, -122, 72, -122, -9, 13, 1, 1, 5, 5, 0, 3, -126, 1, 1, 0, 123, -27, -3, -116, -46, -77, 0, -88, -121, -22, -28, -105, -75, 59, -109, -128, 87, 99, 8, 92, -122, 44, -88, -116, 0, -92, 69, 89, 32, 2, -41, 9, -90, -20, 73, 5, -40, 123, 73, 33, 40, -45, -124, -45, -88, 50, 66, -102, -103, -38, 18, 5, -17, 28, 47, 82, -28, 87, 7, -50, 108, 88, 120, 119, 105, 32, -128, -48, -30, -50, -2, -58, -69, -126, -80, 104, -101, -11, 27, 13, -36, 112, -36, 77, 16, 78, -76, -91, -119, -56, -32, 98, 68, -44, 86, 91, 57, 85, 29, 60, 34, 7, -96, 42, 60, -101, -40, -62, -41, -109, 17, -50, -86, 58, 82, 64, -72, 73, -95, -91, -13, -57, -33, -76, 9, -15, 85, 125, -17, 83, -61, -52, 92, -30, -76, -118, 0, -101, 12, -109, 20, 74, -114, -21, -32, -15, 68, -58, -126, -102, 86, -87, 68, -34, -101, -108, 43, 70, -75, -88, 84, 101, -30, -57, -59, 90, -102, 49, 121, 34, -24, 30, -65, -59, -12, 21, 8, -115, 102, -104, -81, 7, 126, -8, -8, -124, 12, 123, 42, 54, 9, 63, 22, 11, -15, 124, 51, -76, 68, -87, -113, -127, -93, -32, 58, 30, 2, -90, -15, -83, -81, 117, -61, 24, -25, -120, 1, -109, 69, 92, 92, -8, 103, 7, -63, -107, 54, 55, 89, 50, -13, 44, 34, 87, -88, -98, 60, 103, 4, 93, -89, 0, 37, 118, -113, 59, -114, -9, 106, -92, -110, 81, 105, 109, -87, 6 };
  private static byte[] n = { 48, -126, 2, 106, 48, -126, 1, -45, 2, 4, 77, -90, -88, -61, 48, 13, 6, 9, 42, -122, 72, -122, -9, 13, 1, 1, 5, 5, 0, 48, 124, 49, 11, 48, 9, 6, 3, 85, 4, 6, 19, 2, 85, 83, 49, 11, 48, 9, 6, 3, 85, 4, 8, 19, 2, 67, 65, 49, 17, 48, 15, 6, 3, 85, 4, 7, 19, 8, 83, 97, 110, 32, 74, 111, 115, 101, 49, 21, 48, 19, 6, 3, 85, 4, 10, 19, 12, 80, 97, 121, 80, 97, 108, 44, 32, 73, 110, 99, 46, 49, 19, 48, 17, 6, 3, 85, 4, 11, 12, 10, 108, 105, 118, 101, 95, 99, 101, 114, 116, 115, 49, 33, 48, 31, 6, 3, 85, 4, 3, 12, 24, 108, 105, 118, 101, 95, 109, 112, 108, 95, 101, 110, 99, 114, 121, 112, 116, 105, 111, 110, 95, 99, 101, 114, 116, 48, 30, 23, 13, 49, 49, 48, 52, 49, 52, 48, 55, 53, 54, 53, 49, 90, 23, 13, 49, 51, 48, 54, 50, 50, 48, 55, 53, 54, 53, 49, 90, 48, 124, 49, 11, 48, 9, 6, 3, 85, 4, 6, 19, 2, 85, 83, 49, 11, 48, 9, 6, 3, 85, 4, 8, 19, 2, 67, 65, 49, 17, 48, 15, 6, 3, 85, 4, 7, 19, 8, 83, 97, 110, 32, 74, 111, 115, 101, 49, 21, 48, 19, 6, 3, 85, 4, 10, 19, 12, 80, 97, 121, 80, 97, 108, 44, 32, 73, 110, 99, 46, 49, 19, 48, 17, 6, 3, 85, 4, 11, 12, 10, 108, 105, 118, 101, 95, 99, 101, 114, 116, 115, 49, 33, 48, 31, 6, 3, 85, 4, 3, 12, 24, 108, 105, 118, 101, 95, 109, 112, 108, 95, 101, 110, 99, 114, 121, 112, 116, 105, 111, 110, 95, 99, 101, 114, 116, 48, -127, -97, 48, 13, 6, 9, 42, -122, 72, -122, -9, 13, 1, 1, 1, 5, 0, 3, -127, -115, 0, 48, -127, -119, 2, -127, -127, 0, -82, -128, -69, 76, -124, -63, 108, -113, -33, 17, 7, -86, -95, -7, 114, -125, -63, -125, 14, -67, 18, 68, -95, -61, 17, -55, -17, -28, -18, -28, -117, -37, -9, 59, -39, 46, 54, 1, -64, 14, -78, 6, -29, -41, 90, -20, 108, 58, -60, 22, -68, -125, 74, -14, 18, -123, -36, -41, 77, -106, -25, -74, -5, 112, 126, 108, 86, 44, 0, -61, 121, -21, -43, -3, 74, -125, -122, 114, 42, 109, -48, 61, 77, -52, 121, -59, 51, -108, -52, -44, 64, 41, 84, -92, -43, 97, -77, 81, -88, -111, 124, 16, -110, -85, -11, 2, -76, 103, 50, -56, -93, 1, -115, 82, 43, 74, 79, 110, -16, -68, 12, 23, -56, 31, -108, -113, 82, 47, 2, 3, 1, 0, 1, 48, 13, 6, 9, 42, -122, 72, -122, -9, 13, 1, 1, 5, 5, 0, 3, -127, -127, 0, 118, -105, -7, 69, -119, -75, 31, 110, 91, 10, 124, -36, -41, -111, 100, -55, -103, -71, 118, -18, -31, 55, -84, -22, 10, -15, 114, 39, -118, -4, 33, -72, -112, 5, 106, 100, -127, 58, 71, 26, -2, 86, -111, 31, -15, 89, 23, 91, 66, 65, 52, 89, 115, -103, -4, -94, 29, 90, -15, 8, 41, 61, 29, 42, -111, 25, -94, 29, 23, 70, -48, 59, -37, -32, 102, 111, 33, 33, -34, -106, -60, 121, -127, -115, -79, -29, -9, 82, -97, -11, -51, 15, -125, -20, 30, -11, 75, -20, -19, 97, 105, 56, -9, -118, 34, 4, 67, -49, -42, 83, 96, -14, -59, 39, -9, -100, -68, -13, -76, 41, 11, -59, -34, -79, 8, -40, -94, -75 };
  private static byte[] o = { 48, -126, 2, 120, 48, -126, 1, -31, 2, 4, 77, -90, -94, 69, 48, 13, 6, 9, 42, -122, 72, -122, -9, 13, 1, 1, 5, 5, 0, 48, -127, -126, 49, 11, 48, 9, 6, 3, 85, 4, 6, 19, 2, 85, 83, 49, 11, 48, 9, 6, 3, 85, 4, 8, 19, 2, 67, 65, 49, 17, 48, 15, 6, 3, 85, 4, 7, 19, 8, 83, 97, 110, 32, 74, 111, 115, 101, 49, 21, 48, 19, 6, 3, 85, 4, 10, 19, 12, 80, 97, 121, 80, 97, 108, 44, 32, 73, 110, 99, 46, 49, 22, 48, 20, 6, 3, 85, 4, 11, 12, 13, 115, 97, 110, 100, 98, 111, 120, 95, 99, 101, 114, 116, 115, 49, 36, 48, 34, 6, 3, 85, 4, 3, 12, 27, 115, 97, 110, 100, 98, 111, 120, 95, 109, 112, 108, 95, 101, 110, 99, 114, 121, 112, 116, 105, 111, 110, 95, 99, 101, 114, 116, 48, 30, 23, 13, 49, 49, 48, 52, 49, 52, 48, 55, 50, 57, 48, 57, 90, 23, 13, 51, 54, 48, 52, 48, 55, 48, 55, 50, 57, 48, 57, 90, 48, -127, -126, 49, 11, 48, 9, 6, 3, 85, 4, 6, 19, 2, 85, 83, 49, 11, 48, 9, 6, 3, 85, 4, 8, 19, 2, 67, 65, 49, 17, 48, 15, 6, 3, 85, 4, 7, 19, 8, 83, 97, 110, 32, 74, 111, 115, 101, 49, 21, 48, 19, 6, 3, 85, 4, 10, 19, 12, 80, 97, 121, 80, 97, 108, 44, 32, 73, 110, 99, 46, 49, 22, 48, 20, 6, 3, 85, 4, 11, 12, 13, 115, 97, 110, 100, 98, 111, 120, 95, 99, 101, 114, 116, 115, 49, 36, 48, 34, 6, 3, 85, 4, 3, 12, 27, 115, 97, 110, 100, 98, 111, 120, 95, 109, 112, 108, 95, 101, 110, 99, 114, 121, 112, 116, 105, 111, 110, 95, 99, 101, 114, 116, 48, -127, -97, 48, 13, 6, 9, 42, -122, 72, -122, -9, 13, 1, 1, 1, 5, 0, 3, -127, -115, 0, 48, -127, -119, 2, -127, -127, 0, -122, 60, -17, -98, 126, 97, -124, -43, 10, -104, 124, 117, -41, -15, -106, 43, -52, -80, -89, -13, -9, 71, -122, 28, 97, 30, -128, 25, 33, 59, -66, 11, 75, -79, 91, -67, 124, -16, -54, 22, 71, 83, -89, 5, -104, 96, -82, 124, -55, -64, 118, 120, -122, 116, -99, 106, -29, -85, -54, 16, 34, -22, -82, -30, -11, 62, 39, 123, 18, -40, 6, -106, 29, -25, 47, 55, 28, 28, 52, 13, 63, -2, 76, 94, 74, 55, -97, -19, 27, -83, 93, 57, 64, -63, -57, -56, -57, -88, 19, 52, -124, -52, 37, -28, -82, -58, 100, 121, 79, 22, 15, 78, -33, -1, -30, 50, -5, -32, 122, -6, -116, -116, 84, -105, 42, 86, -30, 99, 2, 3, 1, 0, 1, 48, 13, 6, 9, 42, -122, 72, -122, -9, 13, 1, 1, 5, 5, 0, 3, -127, -127, 0, 46, 29, 11, -21, -95, -37, -60, 16, 5, 46, 112, -28, -72, 2, 44, -41, 38, 93, -73, 15, 112, -42, -15, -15, -80, -120, 55, -35, -36, 7, 111, -74, -52, -81, 60, -125, 69, 117, -103, 79, 113, 25, 36, 44, 29, 97, 97, -66, -8, 94, -85, 28, 96, -106, 24, 64, -1, -55, -112, -52, -57, 35, -36, 122, -21, 122, 37, 54, -68, -48, 36, 11, 11, 91, 58, -100, 126, 28, -109, 19, 95, 49, -46, 25, 77, -110, 80, 122, -22, -41, -98, 60, -118, 30, -111, 62, -89, 9, -20, -104, -100, -120, 69, -110, -4, 18, 110, -50, 83, -17, 115, -76, 111, 95, -106, -5, 8, -93, -31, 13, 54, -122, -97, -41, 9, -63, 96, 32 };
  private static String[] p = { "1", "27", "30", "31", "32", "33", "34", "36", "39", "41", "43", "44", "45", "46", "47", "48", "49", "52", "54", "55", "56", "58", "60", "61", "64", "65", "66", "81", "82", "86", "90", "91", "351", "352", "353", "354", "356", "357", "358", "370", "371", "372", "377", "386", "420", "421", "506", "593", "598", "852", "886", "972" };
  private static String q = "";
  private HttpPost c;
  private DefaultHttpClient d = null;
  private int e = -1;
  private int f = -1;
  private int g = -1;
  private Hashtable h;
  private boolean i = false;
  private final Thread j = new m(this);

  private static String A()
  {
    try
    {
      InetAddress localInetAddress;
      do
      {
        Enumeration localEnumeration1 = NetworkInterface.getNetworkInterfaces();
        Enumeration localEnumeration2;
        while (!localEnumeration2.hasMoreElements())
        {
          if (!localEnumeration1.hasMoreElements())
            break;
          localEnumeration2 = ((NetworkInterface)localEnumeration1.nextElement()).getInetAddresses();
        }
        localInetAddress = (InetAddress)localEnumeration2.nextElement();
      }
      while (localInetAddress.isLoopbackAddress());
      String str = localInetAddress.getHostAddress().toString();
      return str;
    }
    catch (SocketException localSocketException)
    {
      com.paypal.android.MEP.e.b("Exception", localSocketException.toString());
    }
    return null;
  }

  // ERROR //
  private boolean B()
  {
    // Byte code:
    //   0: invokestatic 506	com/paypal/android/a/o:a	()Ljava/lang/String;
    //   3: astore_1
    //   4: new 508	java/lang/StringBuilder
    //   7: dup
    //   8: invokespecial 509	java/lang/StringBuilder:<init>	()V
    //   11: invokestatic 511	com/paypal/android/a/c:c	()Ljava/lang/String;
    //   14: invokevirtual 515	java/lang/StringBuilder:append	(Ljava/lang/String;)Ljava/lang/StringBuilder;
    //   17: invokestatic 517	com/paypal/android/a/c:q	()Ljava/lang/String;
    //   20: invokevirtual 515	java/lang/StringBuilder:append	(Ljava/lang/String;)Ljava/lang/StringBuilder;
    //   23: ldc_w 519
    //   26: invokevirtual 515	java/lang/StringBuilder:append	(Ljava/lang/String;)Ljava/lang/StringBuilder;
    //   29: invokevirtual 520	java/lang/StringBuilder:toString	()Ljava/lang/String;
    //   32: astore_2
    //   33: ldc_w 522
    //   36: ldc_w 524
    //   39: invokestatic 526	com/paypal/android/MEP/e:a	(Ljava/lang/String;Ljava/lang/String;)I
    //   42: pop
    //   43: aload_0
    //   44: aload_1
    //   45: aload_2
    //   46: iconst_1
    //   47: invokespecial 529	com/paypal/android/a/c:a	(Ljava/lang/String;Ljava/lang/String;Z)Ljava/lang/String;
    //   50: astore 4
    //   52: ldc_w 522
    //   55: ldc_w 531
    //   58: invokestatic 526	com/paypal/android/MEP/e:a	(Ljava/lang/String;Ljava/lang/String;)I
    //   61: pop
    //   62: invokestatic 534	com/paypal/android/MEP/e:a	()Lcom/paypal/android/MEP/e;
    //   65: astore 6
    //   67: invokestatic 540	javax/xml/parsers/DocumentBuilderFactory:newInstance	()Ljavax/xml/parsers/DocumentBuilderFactory;
    //   70: invokevirtual 544	javax/xml/parsers/DocumentBuilderFactory:newDocumentBuilder	()Ljavax/xml/parsers/DocumentBuilder;
    //   73: new 546	java/io/ByteArrayInputStream
    //   76: dup
    //   77: aload 4
    //   79: ldc_w 548
    //   82: invokevirtual 552	java/lang/String:getBytes	(Ljava/lang/String;)[B
    //   85: invokespecial 555	java/io/ByteArrayInputStream:<init>	([B)V
    //   88: invokevirtual 561	javax/xml/parsers/DocumentBuilder:parse	(Ljava/io/InputStream;)Lorg/w3c/dom/Document;
    //   91: astore 12
    //   93: aload_0
    //   94: aload 12
    //   96: aload 4
    //   98: invokespecial 564	com/paypal/android/a/c:a	(Lorg/w3c/dom/Document;Ljava/lang/String;)Z
    //   101: ifeq +271 -> 372
    //   104: ldc_w 566
    //   107: aload_2
    //   108: aload_1
    //   109: aload 4
    //   111: invokestatic 569	com/paypal/android/a/c:a	(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
    //   114: aload 12
    //   116: aload_0
    //   117: getfield 571	com/paypal/android/a/c:h	Ljava/util/Hashtable;
    //   120: invokestatic 574	com/paypal/android/a/o:a	(Lorg/w3c/dom/Document;Ljava/util/Hashtable;)Z
    //   123: pop
    //   124: aload 6
    //   126: invokevirtual 577	com/paypal/android/MEP/e:w	()V
    //   129: iconst_0
    //   130: ireturn
    //   131: astore 11
    //   133: ldc_w 566
    //   136: aload_2
    //   137: aload_1
    //   138: new 508	java/lang/StringBuilder
    //   141: dup
    //   142: invokespecial 509	java/lang/StringBuilder:<init>	()V
    //   145: ldc_w 579
    //   148: invokevirtual 515	java/lang/StringBuilder:append	(Ljava/lang/String;)Ljava/lang/StringBuilder;
    //   151: aload 11
    //   153: invokevirtual 582	javax/xml/parsers/ParserConfigurationException:getMessage	()Ljava/lang/String;
    //   156: invokevirtual 515	java/lang/StringBuilder:append	(Ljava/lang/String;)Ljava/lang/StringBuilder;
    //   159: invokevirtual 520	java/lang/StringBuilder:toString	()Ljava/lang/String;
    //   162: invokestatic 569	com/paypal/android/a/c:a	(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
    //   165: aload 6
    //   167: invokevirtual 577	com/paypal/android/MEP/e:w	()V
    //   170: iconst_0
    //   171: ireturn
    //   172: astore 10
    //   174: ldc_w 566
    //   177: aload_2
    //   178: aload_1
    //   179: new 508	java/lang/StringBuilder
    //   182: dup
    //   183: invokespecial 509	java/lang/StringBuilder:<init>	()V
    //   186: ldc_w 579
    //   189: invokevirtual 515	java/lang/StringBuilder:append	(Ljava/lang/String;)Ljava/lang/StringBuilder;
    //   192: aload 10
    //   194: invokevirtual 583	java/io/UnsupportedEncodingException:getMessage	()Ljava/lang/String;
    //   197: invokevirtual 515	java/lang/StringBuilder:append	(Ljava/lang/String;)Ljava/lang/StringBuilder;
    //   200: invokevirtual 520	java/lang/StringBuilder:toString	()Ljava/lang/String;
    //   203: invokestatic 569	com/paypal/android/a/c:a	(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
    //   206: aload 6
    //   208: invokevirtual 577	com/paypal/android/MEP/e:w	()V
    //   211: iconst_0
    //   212: ireturn
    //   213: astore 9
    //   215: ldc_w 566
    //   218: aload_2
    //   219: aload_1
    //   220: new 508	java/lang/StringBuilder
    //   223: dup
    //   224: invokespecial 509	java/lang/StringBuilder:<init>	()V
    //   227: ldc_w 579
    //   230: invokevirtual 515	java/lang/StringBuilder:append	(Ljava/lang/String;)Ljava/lang/StringBuilder;
    //   233: aload 9
    //   235: invokevirtual 584	org/xml/sax/SAXException:getMessage	()Ljava/lang/String;
    //   238: invokevirtual 515	java/lang/StringBuilder:append	(Ljava/lang/String;)Ljava/lang/StringBuilder;
    //   241: invokevirtual 520	java/lang/StringBuilder:toString	()Ljava/lang/String;
    //   244: invokestatic 569	com/paypal/android/a/c:a	(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
    //   247: aload 6
    //   249: invokevirtual 577	com/paypal/android/MEP/e:w	()V
    //   252: iconst_0
    //   253: ireturn
    //   254: astore 8
    //   256: ldc_w 566
    //   259: aload_2
    //   260: aload_1
    //   261: new 508	java/lang/StringBuilder
    //   264: dup
    //   265: invokespecial 509	java/lang/StringBuilder:<init>	()V
    //   268: ldc_w 579
    //   271: invokevirtual 515	java/lang/StringBuilder:append	(Ljava/lang/String;)Ljava/lang/StringBuilder;
    //   274: aload 8
    //   276: invokevirtual 585	java/lang/NullPointerException:getMessage	()Ljava/lang/String;
    //   279: invokevirtual 515	java/lang/StringBuilder:append	(Ljava/lang/String;)Ljava/lang/StringBuilder;
    //   282: invokevirtual 520	java/lang/StringBuilder:toString	()Ljava/lang/String;
    //   285: invokestatic 569	com/paypal/android/a/c:a	(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
    //   288: aload 6
    //   290: invokevirtual 577	com/paypal/android/MEP/e:w	()V
    //   293: iconst_0
    //   294: ireturn
    //   295: astore 7
    //   297: ldc_w 566
    //   300: aload_2
    //   301: aload_1
    //   302: new 508	java/lang/StringBuilder
    //   305: dup
    //   306: invokespecial 509	java/lang/StringBuilder:<init>	()V
    //   309: ldc_w 579
    //   312: invokevirtual 515	java/lang/StringBuilder:append	(Ljava/lang/String;)Ljava/lang/StringBuilder;
    //   315: aload 7
    //   317: invokevirtual 586	java/io/IOException:getMessage	()Ljava/lang/String;
    //   320: invokevirtual 515	java/lang/StringBuilder:append	(Ljava/lang/String;)Ljava/lang/StringBuilder;
    //   323: invokevirtual 520	java/lang/StringBuilder:toString	()Ljava/lang/String;
    //   326: invokestatic 569	com/paypal/android/a/c:a	(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
    //   329: aload 6
    //   331: invokevirtual 577	com/paypal/android/MEP/e:w	()V
    //   334: iconst_0
    //   335: ireturn
    //   336: astore 14
    //   338: ldc_w 588
    //   341: new 508	java/lang/StringBuilder
    //   344: dup
    //   345: invokespecial 509	java/lang/StringBuilder:<init>	()V
    //   348: ldc_w 590
    //   351: invokevirtual 515	java/lang/StringBuilder:append	(Ljava/lang/String;)Ljava/lang/StringBuilder;
    //   354: aload 14
    //   356: invokevirtual 591	java/lang/Throwable:getMessage	()Ljava/lang/String;
    //   359: invokevirtual 515	java/lang/StringBuilder:append	(Ljava/lang/String;)Ljava/lang/StringBuilder;
    //   362: invokevirtual 520	java/lang/StringBuilder:toString	()Ljava/lang/String;
    //   365: invokestatic 489	com/paypal/android/MEP/e:b	(Ljava/lang/String;Ljava/lang/String;)I
    //   368: pop
    //   369: goto -245 -> 124
    //   372: aload 12
    //   374: aload_0
    //   375: getfield 571	com/paypal/android/a/c:h	Ljava/util/Hashtable;
    //   378: invokestatic 574	com/paypal/android/a/o:a	(Lorg/w3c/dom/Document;Ljava/util/Hashtable;)Z
    //   381: ifeq +5 -> 386
    //   384: iconst_1
    //   385: ireturn
    //   386: aload 6
    //   388: invokevirtual 577	com/paypal/android/MEP/e:w	()V
    //   391: aload_0
    //   392: iconst_m1
    //   393: putfield 436	com/paypal/android/a/c:f	I
    //   396: ldc_w 588
    //   399: ldc_w 593
    //   402: invokestatic 489	com/paypal/android/MEP/e:b	(Ljava/lang/String;Ljava/lang/String;)I
    //   405: pop
    //   406: iconst_0
    //   407: ireturn
    //
    // Exception table:
    //   from	to	target	type
    //   67	93	131	javax/xml/parsers/ParserConfigurationException
    //   67	93	172	java/io/UnsupportedEncodingException
    //   67	93	213	org/xml/sax/SAXException
    //   67	93	254	java/lang/NullPointerException
    //   67	93	295	java/io/IOException
    //   114	124	336	java/lang/Throwable
  }

  private boolean C()
  {
    String str1 = (String)this.h.get("NewPin");
    try
    {
      String str2 = o.a(this.h, j(str1));
      String str3 = c() + q() + "/DeviceCreatePin";
      String str4 = a(str2, str3, true);
      Document localDocument = DocumentBuilderFactory.newInstance().newDocumentBuilder().parse(new ByteArrayInputStream(str4.getBytes("UTF-8")));
      if (!a(localDocument, str4))
      {
        o.b(localDocument);
        return true;
      }
      a("createPIN", str3, str2, str4);
      this.f = -1;
      return false;
    }
    catch (h localh)
    {
      while (true)
        com.paypal.android.MEP.e.b("NetworkHandler", "createPIN caught BadXMLException " + localh.getMessage());
    }
    catch (p localp)
    {
      while (true)
        com.paypal.android.MEP.e.b("NetworkHandler", "createPIN caught BadPhoneNumberException " + localp.getMessage());
    }
    catch (ParserConfigurationException localParserConfigurationException)
    {
      while (true)
        com.paypal.android.MEP.e.b("NetworkHandler", "Exception " + localParserConfigurationException.getMessage());
    }
    catch (UnsupportedEncodingException localUnsupportedEncodingException)
    {
      while (true)
        com.paypal.android.MEP.e.b("NetworkHandler", "Exception " + localUnsupportedEncodingException.getMessage());
    }
    catch (SAXException localSAXException)
    {
      while (true)
        com.paypal.android.MEP.e.b("NetworkHandler", "Exception " + localSAXException.getMessage());
    }
    catch (IOException localIOException)
    {
      while (true)
        com.paypal.android.MEP.e.b("NetworkHandler", "Exception " + localIOException.getMessage());
    }
    catch (CertificateExpiredException localCertificateExpiredException)
    {
      while (true)
        com.paypal.android.MEP.e.b("NetworkHandler", "Exception " + localCertificateExpiredException.getMessage());
    }
    catch (CertificateNotYetValidException localCertificateNotYetValidException)
    {
      while (true)
        com.paypal.android.MEP.e.b("NetworkHandler", "Exception " + localCertificateNotYetValidException.getMessage());
    }
  }

  private boolean D()
  {
    String str = a(o.b(), c() + q() + "/RemoveDeviceAuthorization", true);
    if (k(str))
      try
      {
        o.f(str, this.h);
        return false;
      }
      catch (Throwable localThrowable)
      {
        com.paypal.android.MEP.e.b("NetworkHandler", "readRemoveDeviceAuthorization caught exception " + localThrowable.getMessage());
        return false;
      }
    if (o.f(str, this.h))
      return true;
    this.f = -1;
    return false;
  }

  // ERROR //
  private String a(String paramString1, String paramString2, boolean paramBoolean)
  {
    // Byte code:
    //   0: aload_0
    //   1: getfield 432	com/paypal/android/a/c:d	Lorg/apache/http/impl/client/DefaultHttpClient;
    //   4: ifnonnull +10 -> 14
    //   7: aload_0
    //   8: invokestatic 652	com/paypal/android/a/c:i	()Lorg/apache/http/impl/client/DefaultHttpClient;
    //   11: putfield 432	com/paypal/android/a/c:d	Lorg/apache/http/impl/client/DefaultHttpClient;
    //   14: aload_0
    //   15: new 654	org/apache/http/client/methods/HttpPost
    //   18: dup
    //   19: aload_2
    //   20: invokespecial 657	org/apache/http/client/methods/HttpPost:<init>	(Ljava/lang/String;)V
    //   23: putfield 659	com/paypal/android/a/c:c	Lorg/apache/http/client/methods/HttpPost;
    //   26: new 661	org/apache/http/entity/StringEntity
    //   29: dup
    //   30: aload_1
    //   31: ldc_w 548
    //   34: invokestatic 667	java/nio/charset/Charset:forName	(Ljava/lang/String;)Ljava/nio/charset/Charset;
    //   37: invokevirtual 670	java/nio/charset/Charset:name	()Ljava/lang/String;
    //   40: invokespecial 673	org/apache/http/entity/StringEntity:<init>	(Ljava/lang/String;Ljava/lang/String;)V
    //   43: astore 15
    //   45: iload_3
    //   46: ifeq +260 -> 306
    //   49: aload_0
    //   50: getfield 659	com/paypal/android/a/c:c	Lorg/apache/http/client/methods/HttpPost;
    //   53: ldc_w 675
    //   56: ldc_w 677
    //   59: invokevirtual 680	org/apache/http/client/methods/HttpPost:setHeader	(Ljava/lang/String;Ljava/lang/String;)V
    //   62: aload_0
    //   63: getfield 659	com/paypal/android/a/c:c	Lorg/apache/http/client/methods/HttpPost;
    //   66: ldc_w 682
    //   69: ldc_w 684
    //   72: invokevirtual 680	org/apache/http/client/methods/HttpPost:setHeader	(Ljava/lang/String;Ljava/lang/String;)V
    //   75: aload_0
    //   76: getfield 659	com/paypal/android/a/c:c	Lorg/apache/http/client/methods/HttpPost;
    //   79: ldc_w 686
    //   82: getstatic 691	com/paypal/android/MEP/PayPalActivity:b	Lcom/paypal/android/MEP/e;
    //   85: invokevirtual 693	com/paypal/android/MEP/e:f	()Ljava/lang/String;
    //   88: invokevirtual 680	org/apache/http/client/methods/HttpPost:setHeader	(Ljava/lang/String;Ljava/lang/String;)V
    //   91: aload_0
    //   92: getfield 659	com/paypal/android/a/c:c	Lorg/apache/http/client/methods/HttpPost;
    //   95: ldc_w 695
    //   98: invokestatic 698	com/paypal/android/MEP/e:y	()Ljava/lang/String;
    //   101: invokevirtual 680	org/apache/http/client/methods/HttpPost:setHeader	(Ljava/lang/String;Ljava/lang/String;)V
    //   104: aload_0
    //   105: getfield 659	com/paypal/android/a/c:c	Lorg/apache/http/client/methods/HttpPost;
    //   108: ldc_w 700
    //   111: ldc_w 702
    //   114: invokevirtual 680	org/apache/http/client/methods/HttpPost:setHeader	(Ljava/lang/String;Ljava/lang/String;)V
    //   117: aload_0
    //   118: getfield 659	com/paypal/android/a/c:c	Lorg/apache/http/client/methods/HttpPost;
    //   121: ldc_w 704
    //   124: ldc_w 702
    //   127: invokevirtual 680	org/apache/http/client/methods/HttpPost:setHeader	(Ljava/lang/String;Ljava/lang/String;)V
    //   130: aload_0
    //   131: getfield 659	com/paypal/android/a/c:c	Lorg/apache/http/client/methods/HttpPost;
    //   134: ldc_w 704
    //   137: ldc_w 702
    //   140: invokevirtual 680	org/apache/http/client/methods/HttpPost:setHeader	(Ljava/lang/String;Ljava/lang/String;)V
    //   143: aload_0
    //   144: getfield 659	com/paypal/android/a/c:c	Lorg/apache/http/client/methods/HttpPost;
    //   147: ldc_w 704
    //   150: ldc_w 702
    //   153: invokevirtual 680	org/apache/http/client/methods/HttpPost:setHeader	(Ljava/lang/String;Ljava/lang/String;)V
    //   156: aload_0
    //   157: getfield 659	com/paypal/android/a/c:c	Lorg/apache/http/client/methods/HttpPost;
    //   160: ldc_w 704
    //   163: ldc_w 702
    //   166: invokevirtual 680	org/apache/http/client/methods/HttpPost:setHeader	(Ljava/lang/String;Ljava/lang/String;)V
    //   169: aload_0
    //   170: getfield 659	com/paypal/android/a/c:c	Lorg/apache/http/client/methods/HttpPost;
    //   173: ldc_w 706
    //   176: ldc_w 708
    //   179: invokevirtual 680	org/apache/http/client/methods/HttpPost:setHeader	(Ljava/lang/String;Ljava/lang/String;)V
    //   182: aload_0
    //   183: getfield 659	com/paypal/android/a/c:c	Lorg/apache/http/client/methods/HttpPost;
    //   186: ldc_w 710
    //   189: ldc_w 712
    //   192: invokevirtual 680	org/apache/http/client/methods/HttpPost:setHeader	(Ljava/lang/String;Ljava/lang/String;)V
    //   195: aload_0
    //   196: getfield 659	com/paypal/android/a/c:c	Lorg/apache/http/client/methods/HttpPost;
    //   199: aload 15
    //   201: invokevirtual 716	org/apache/http/client/methods/HttpPost:setEntity	(Lorg/apache/http/HttpEntity;)V
    //   204: ldc_w 588
    //   207: ldc_w 718
    //   210: invokestatic 526	com/paypal/android/MEP/e:a	(Ljava/lang/String;Ljava/lang/String;)I
    //   213: pop
    //   214: aload_0
    //   215: getfield 432	com/paypal/android/a/c:d	Lorg/apache/http/impl/client/DefaultHttpClient;
    //   218: aload_0
    //   219: getfield 659	com/paypal/android/a/c:c	Lorg/apache/http/client/methods/HttpPost;
    //   222: invokevirtual 724	org/apache/http/impl/client/DefaultHttpClient:execute	(Lorg/apache/http/client/methods/HttpUriRequest;)Lorg/apache/http/HttpResponse;
    //   225: astore 17
    //   227: aload 17
    //   229: invokeinterface 730 1 0
    //   234: astore 18
    //   236: aload 17
    //   238: invokeinterface 734 1 0
    //   243: astore 19
    //   245: aload 19
    //   247: ifnull +397 -> 644
    //   250: aload 19
    //   252: arraylength
    //   253: istore 20
    //   255: iconst_0
    //   256: istore 21
    //   258: iconst_0
    //   259: istore 22
    //   261: iload 21
    //   263: iload 20
    //   265: if_icmpge +382 -> 647
    //   268: aload 19
    //   270: iload 21
    //   272: aaload
    //   273: astore 23
    //   275: aload 23
    //   277: invokeinterface 739 1 0
    //   282: ldc_w 741
    //   285: invokevirtual 745	java/lang/String:compareTo	(Ljava/lang/String;)I
    //   288: ifne +698 -> 986
    //   291: aload 23
    //   293: invokeinterface 748 1 0
    //   298: invokestatic 753	java/lang/Integer:parseInt	(Ljava/lang/String;)I
    //   301: istore 22
    //   303: goto +683 -> 986
    //   306: aload_2
    //   307: invokestatic 755	com/paypal/android/a/c:p	()Ljava/lang/String;
    //   310: invokevirtual 759	java/lang/String:contains	(Ljava/lang/CharSequence;)Z
    //   313: ifeq +317 -> 630
    //   316: invokestatic 534	com/paypal/android/MEP/e:a	()Lcom/paypal/android/MEP/e;
    //   319: invokevirtual 762	com/paypal/android/MEP/e:k	()I
    //   322: iconst_3
    //   323: if_icmpne +224 -> 547
    //   326: aload_0
    //   327: getfield 659	com/paypal/android/a/c:c	Lorg/apache/http/client/methods/HttpPost;
    //   330: ldc_w 675
    //   333: ldc_w 677
    //   336: invokevirtual 680	org/apache/http/client/methods/HttpPost:setHeader	(Ljava/lang/String;Ljava/lang/String;)V
    //   339: aload_0
    //   340: getfield 659	com/paypal/android/a/c:c	Lorg/apache/http/client/methods/HttpPost;
    //   343: ldc_w 682
    //   346: ldc_w 684
    //   349: invokevirtual 680	org/apache/http/client/methods/HttpPost:setHeader	(Ljava/lang/String;Ljava/lang/String;)V
    //   352: aload_0
    //   353: getfield 659	com/paypal/android/a/c:c	Lorg/apache/http/client/methods/HttpPost;
    //   356: ldc_w 764
    //   359: invokestatic 766	com/paypal/android/a/c:A	()Ljava/lang/String;
    //   362: invokevirtual 680	org/apache/http/client/methods/HttpPost:setHeader	(Ljava/lang/String;Ljava/lang/String;)V
    //   365: aload_0
    //   366: getfield 659	com/paypal/android/a/c:c	Lorg/apache/http/client/methods/HttpPost;
    //   369: ldc_w 686
    //   372: getstatic 691	com/paypal/android/MEP/PayPalActivity:b	Lcom/paypal/android/MEP/e;
    //   375: invokevirtual 693	com/paypal/android/MEP/e:f	()Ljava/lang/String;
    //   378: invokevirtual 680	org/apache/http/client/methods/HttpPost:setHeader	(Ljava/lang/String;Ljava/lang/String;)V
    //   381: aload_0
    //   382: getfield 659	com/paypal/android/a/c:c	Lorg/apache/http/client/methods/HttpPost;
    //   385: ldc_w 768
    //   388: getstatic 429	com/paypal/android/a/c:q	Ljava/lang/String;
    //   391: invokevirtual 680	org/apache/http/client/methods/HttpPost:setHeader	(Ljava/lang/String;Ljava/lang/String;)V
    //   394: aload_0
    //   395: getfield 659	com/paypal/android/a/c:c	Lorg/apache/http/client/methods/HttpPost;
    //   398: ldc_w 695
    //   401: invokestatic 698	com/paypal/android/MEP/e:y	()Ljava/lang/String;
    //   404: invokevirtual 680	org/apache/http/client/methods/HttpPost:setHeader	(Ljava/lang/String;Ljava/lang/String;)V
    //   407: aload_0
    //   408: getfield 659	com/paypal/android/a/c:c	Lorg/apache/http/client/methods/HttpPost;
    //   411: ldc_w 700
    //   414: ldc_w 702
    //   417: invokevirtual 680	org/apache/http/client/methods/HttpPost:setHeader	(Ljava/lang/String;Ljava/lang/String;)V
    //   420: aload_0
    //   421: getfield 659	com/paypal/android/a/c:c	Lorg/apache/http/client/methods/HttpPost;
    //   424: ldc_w 704
    //   427: ldc_w 702
    //   430: invokevirtual 680	org/apache/http/client/methods/HttpPost:setHeader	(Ljava/lang/String;Ljava/lang/String;)V
    //   433: aload_0
    //   434: getfield 659	com/paypal/android/a/c:c	Lorg/apache/http/client/methods/HttpPost;
    //   437: ldc_w 706
    //   440: ldc_w 708
    //   443: invokevirtual 680	org/apache/http/client/methods/HttpPost:setHeader	(Ljava/lang/String;Ljava/lang/String;)V
    //   446: aload_0
    //   447: getfield 659	com/paypal/android/a/c:c	Lorg/apache/http/client/methods/HttpPost;
    //   450: ldc_w 710
    //   453: ldc_w 712
    //   456: invokevirtual 680	org/apache/http/client/methods/HttpPost:setHeader	(Ljava/lang/String;Ljava/lang/String;)V
    //   459: aload_0
    //   460: getfield 659	com/paypal/android/a/c:c	Lorg/apache/http/client/methods/HttpPost;
    //   463: aload 15
    //   465: invokevirtual 716	org/apache/http/client/methods/HttpPost:setEntity	(Lorg/apache/http/HttpEntity;)V
    //   468: goto -264 -> 204
    //   471: astore 10
    //   473: aconst_null
    //   474: astore 5
    //   476: aconst_null
    //   477: astore 6
    //   479: ldc_w 588
    //   482: new 508	java/lang/StringBuilder
    //   485: dup
    //   486: invokespecial 509	java/lang/StringBuilder:<init>	()V
    //   489: ldc_w 770
    //   492: invokevirtual 515	java/lang/StringBuilder:append	(Ljava/lang/String;)Ljava/lang/StringBuilder;
    //   495: aload 10
    //   497: invokevirtual 591	java/lang/Throwable:getMessage	()Ljava/lang/String;
    //   500: invokevirtual 515	java/lang/StringBuilder:append	(Ljava/lang/String;)Ljava/lang/StringBuilder;
    //   503: invokevirtual 520	java/lang/StringBuilder:toString	()Ljava/lang/String;
    //   506: invokestatic 489	com/paypal/android/MEP/e:b	(Ljava/lang/String;Ljava/lang/String;)I
    //   509: pop
    //   510: aload 5
    //   512: ifnull +8 -> 520
    //   515: aload 5
    //   517: invokevirtual 775	java/io/DataInputStream:close	()V
    //   520: aload 6
    //   522: ifnull +8 -> 530
    //   525: aload 6
    //   527: invokevirtual 778	java/io/InputStream:close	()V
    //   530: aload_0
    //   531: aconst_null
    //   532: putfield 659	com/paypal/android/a/c:c	Lorg/apache/http/client/methods/HttpPost;
    //   535: aload_0
    //   536: aconst_null
    //   537: putfield 432	com/paypal/android/a/c:d	Lorg/apache/http/impl/client/DefaultHttpClient;
    //   540: aload_0
    //   541: iconst_0
    //   542: putfield 436	com/paypal/android/a/c:f	I
    //   545: aconst_null
    //   546: areturn
    //   547: aload_0
    //   548: getfield 659	com/paypal/android/a/c:c	Lorg/apache/http/client/methods/HttpPost;
    //   551: ldc_w 780
    //   554: ldc_w 522
    //   557: invokevirtual 680	org/apache/http/client/methods/HttpPost:setHeader	(Ljava/lang/String;Ljava/lang/String;)V
    //   560: aload_0
    //   561: getfield 659	com/paypal/android/a/c:c	Lorg/apache/http/client/methods/HttpPost;
    //   564: ldc_w 782
    //   567: ldc_w 522
    //   570: invokevirtual 680	org/apache/http/client/methods/HttpPost:setHeader	(Ljava/lang/String;Ljava/lang/String;)V
    //   573: aload_0
    //   574: getfield 659	com/paypal/android/a/c:c	Lorg/apache/http/client/methods/HttpPost;
    //   577: ldc_w 784
    //   580: ldc_w 522
    //   583: invokevirtual 680	org/apache/http/client/methods/HttpPost:setHeader	(Ljava/lang/String;Ljava/lang/String;)V
    //   586: goto -247 -> 339
    //   589: astore 4
    //   591: aconst_null
    //   592: astore 5
    //   594: aconst_null
    //   595: astore 6
    //   597: aload 5
    //   599: ifnull +8 -> 607
    //   602: aload 5
    //   604: invokevirtual 775	java/io/DataInputStream:close	()V
    //   607: aload 6
    //   609: ifnull +8 -> 617
    //   612: aload 6
    //   614: invokevirtual 778	java/io/InputStream:close	()V
    //   617: aload_0
    //   618: aconst_null
    //   619: putfield 659	com/paypal/android/a/c:c	Lorg/apache/http/client/methods/HttpPost;
    //   622: aload_0
    //   623: aconst_null
    //   624: putfield 432	com/paypal/android/a/c:d	Lorg/apache/http/impl/client/DefaultHttpClient;
    //   627: aload 4
    //   629: athrow
    //   630: aload_0
    //   631: aconst_null
    //   632: putfield 659	com/paypal/android/a/c:c	Lorg/apache/http/client/methods/HttpPost;
    //   635: aload_0
    //   636: aconst_null
    //   637: putfield 432	com/paypal/android/a/c:d	Lorg/apache/http/impl/client/DefaultHttpClient;
    //   640: ldc_w 786
    //   643: areturn
    //   644: iconst_0
    //   645: istore 22
    //   647: ldc_w 588
    //   650: ldc_w 788
    //   653: invokestatic 526	com/paypal/android/MEP/e:a	(Ljava/lang/String;Ljava/lang/String;)I
    //   656: pop
    //   657: aload 18
    //   659: invokeinterface 794 1 0
    //   664: astore 25
    //   666: aload 25
    //   668: astore 6
    //   670: new 772	java/io/DataInputStream
    //   673: dup
    //   674: aload 6
    //   676: invokespecial 797	java/io/DataInputStream:<init>	(Ljava/io/InputStream;)V
    //   679: astore 5
    //   681: aload 6
    //   683: invokevirtual 800	java/io/InputStream:available	()I
    //   686: iload 22
    //   688: if_icmple +10 -> 698
    //   691: aload 6
    //   693: invokevirtual 800	java/io/InputStream:available	()I
    //   696: istore 22
    //   698: aload 5
    //   700: invokevirtual 801	java/io/DataInputStream:available	()I
    //   703: iload 22
    //   705: if_icmple +10 -> 715
    //   708: aload 5
    //   710: invokevirtual 801	java/io/DataInputStream:available	()I
    //   713: istore 22
    //   715: ldc_w 588
    //   718: ldc_w 803
    //   721: invokestatic 526	com/paypal/android/MEP/e:a	(Ljava/lang/String;Ljava/lang/String;)I
    //   724: pop
    //   725: iload 22
    //   727: ifeq +90 -> 817
    //   730: iload 22
    //   732: newarray byte
    //   734: astore 27
    //   736: aload 5
    //   738: aload 27
    //   740: invokevirtual 806	java/io/DataInputStream:readFully	([B)V
    //   743: new 319	java/lang/String
    //   746: dup
    //   747: aload 27
    //   749: ldc_w 548
    //   752: invokespecial 809	java/lang/String:<init>	([BLjava/lang/String;)V
    //   755: astore 28
    //   757: aload 18
    //   759: ifnull +10 -> 769
    //   762: aload 18
    //   764: invokeinterface 812 1 0
    //   769: aload 5
    //   771: invokevirtual 775	java/io/DataInputStream:close	()V
    //   774: aload 6
    //   776: invokevirtual 778	java/io/InputStream:close	()V
    //   779: aload_0
    //   780: aconst_null
    //   781: putfield 659	com/paypal/android/a/c:c	Lorg/apache/http/client/methods/HttpPost;
    //   784: aload_0
    //   785: aconst_null
    //   786: putfield 432	com/paypal/android/a/c:d	Lorg/apache/http/impl/client/DefaultHttpClient;
    //   789: aload 5
    //   791: invokevirtual 775	java/io/DataInputStream:close	()V
    //   794: aload 6
    //   796: ifnull +8 -> 804
    //   799: aload 6
    //   801: invokevirtual 778	java/io/InputStream:close	()V
    //   804: aload_0
    //   805: aconst_null
    //   806: putfield 659	com/paypal/android/a/c:c	Lorg/apache/http/client/methods/HttpPost;
    //   809: aload_0
    //   810: aconst_null
    //   811: putfield 432	com/paypal/android/a/c:d	Lorg/apache/http/impl/client/DefaultHttpClient;
    //   814: aload 28
    //   816: areturn
    //   817: new 319	java/lang/String
    //   820: dup
    //   821: aload 5
    //   823: invokestatic 815	com/paypal/android/a/c:a	(Ljava/io/InputStream;)[B
    //   826: ldc_w 548
    //   829: invokespecial 809	java/lang/String:<init>	([BLjava/lang/String;)V
    //   832: astore 28
    //   834: goto -77 -> 757
    //   837: astore 10
    //   839: goto -360 -> 479
    //   842: astore 30
    //   844: ldc_w 588
    //   847: new 508	java/lang/StringBuilder
    //   850: dup
    //   851: invokespecial 509	java/lang/StringBuilder:<init>	()V
    //   854: ldc_w 817
    //   857: invokevirtual 515	java/lang/StringBuilder:append	(Ljava/lang/String;)Ljava/lang/StringBuilder;
    //   860: aload 30
    //   862: invokevirtual 818	java/lang/Exception:getMessage	()Ljava/lang/String;
    //   865: invokevirtual 515	java/lang/StringBuilder:append	(Ljava/lang/String;)Ljava/lang/StringBuilder;
    //   868: invokevirtual 520	java/lang/StringBuilder:toString	()Ljava/lang/String;
    //   871: invokestatic 489	com/paypal/android/MEP/e:b	(Ljava/lang/String;Ljava/lang/String;)I
    //   874: pop
    //   875: goto -71 -> 804
    //   878: astore 12
    //   880: ldc_w 588
    //   883: new 508	java/lang/StringBuilder
    //   886: dup
    //   887: invokespecial 509	java/lang/StringBuilder:<init>	()V
    //   890: ldc_w 817
    //   893: invokevirtual 515	java/lang/StringBuilder:append	(Ljava/lang/String;)Ljava/lang/StringBuilder;
    //   896: aload 12
    //   898: invokevirtual 818	java/lang/Exception:getMessage	()Ljava/lang/String;
    //   901: invokevirtual 515	java/lang/StringBuilder:append	(Ljava/lang/String;)Ljava/lang/StringBuilder;
    //   904: invokevirtual 520	java/lang/StringBuilder:toString	()Ljava/lang/String;
    //   907: invokestatic 489	com/paypal/android/MEP/e:b	(Ljava/lang/String;Ljava/lang/String;)I
    //   910: pop
    //   911: goto -381 -> 530
    //   914: astore 7
    //   916: ldc_w 588
    //   919: new 508	java/lang/StringBuilder
    //   922: dup
    //   923: invokespecial 509	java/lang/StringBuilder:<init>	()V
    //   926: ldc_w 817
    //   929: invokevirtual 515	java/lang/StringBuilder:append	(Ljava/lang/String;)Ljava/lang/StringBuilder;
    //   932: aload 7
    //   934: invokevirtual 818	java/lang/Exception:getMessage	()Ljava/lang/String;
    //   937: invokevirtual 515	java/lang/StringBuilder:append	(Ljava/lang/String;)Ljava/lang/StringBuilder;
    //   940: invokevirtual 520	java/lang/StringBuilder:toString	()Ljava/lang/String;
    //   943: invokestatic 489	com/paypal/android/MEP/e:b	(Ljava/lang/String;Ljava/lang/String;)I
    //   946: pop
    //   947: goto -330 -> 617
    //   950: astore 29
    //   952: goto -158 -> 794
    //   955: astore 14
    //   957: goto -437 -> 520
    //   960: astore 9
    //   962: goto -355 -> 607
    //   965: astore 4
    //   967: aconst_null
    //   968: astore 5
    //   970: goto -373 -> 597
    //   973: astore 4
    //   975: goto -378 -> 597
    //   978: astore 10
    //   980: aconst_null
    //   981: astore 5
    //   983: goto -504 -> 479
    //   986: iinc 21 1
    //   989: goto -728 -> 261
    //
    // Exception table:
    //   from	to	target	type
    //   0	14	471	java/lang/Throwable
    //   14	45	471	java/lang/Throwable
    //   49	204	471	java/lang/Throwable
    //   204	245	471	java/lang/Throwable
    //   250	255	471	java/lang/Throwable
    //   268	303	471	java/lang/Throwable
    //   306	339	471	java/lang/Throwable
    //   339	468	471	java/lang/Throwable
    //   547	586	471	java/lang/Throwable
    //   647	666	471	java/lang/Throwable
    //   0	14	589	finally
    //   14	45	589	finally
    //   49	204	589	finally
    //   204	245	589	finally
    //   250	255	589	finally
    //   268	303	589	finally
    //   306	339	589	finally
    //   339	468	589	finally
    //   547	586	589	finally
    //   647	666	589	finally
    //   681	698	837	java/lang/Throwable
    //   698	715	837	java/lang/Throwable
    //   715	725	837	java/lang/Throwable
    //   730	757	837	java/lang/Throwable
    //   762	769	837	java/lang/Throwable
    //   769	789	837	java/lang/Throwable
    //   817	834	837	java/lang/Throwable
    //   799	804	842	java/lang/Exception
    //   525	530	878	java/lang/Exception
    //   612	617	914	java/lang/Exception
    //   789	794	950	java/lang/Exception
    //   515	520	955	java/lang/Exception
    //   602	607	960	java/lang/Exception
    //   670	681	965	finally
    //   479	510	973	finally
    //   681	698	973	finally
    //   698	715	973	finally
    //   715	725	973	finally
    //   730	757	973	finally
    //   762	769	973	finally
    //   769	789	973	finally
    //   817	834	973	finally
    //   670	681	978	java/lang/Throwable
  }

  private static void a(String paramString1, String paramString2, String paramString3, String paramString4)
  {
    com.paypal.android.MEP.e.a("NetworkHandler", paramString1 + " error endpoint - " + paramString2);
    com.paypal.android.MEP.e.a("NetworkHandler", paramString1 + " error request - " + paramString3);
    if (paramString4 != null)
      com.paypal.android.MEP.e.a("NetworkHandler", paramString1 + " error reply - " + paramString4);
  }

  private boolean a(String paramString1, String paramString2, String paramString3)
  {
    com.paypal.android.MEP.e.a();
    do
    {
      Document localDocument;
      try
      {
        localDocument = DocumentBuilderFactory.newInstance().newDocumentBuilder().parse(new ByteArrayInputStream(paramString3.getBytes("UTF-8")));
        if (a(localDocument, paramString3))
        {
          a("createQuickPayment", paramString1, paramString2, paramString3);
          return false;
        }
      }
      catch (ParserConfigurationException localParserConfigurationException)
      {
        a("parseDeviceAuthenticateUser", paramString1, paramString2, "Exception " + localParserConfigurationException.getMessage());
        return false;
      }
      catch (UnsupportedEncodingException localUnsupportedEncodingException)
      {
        a("parseDeviceAuthenticateUser", paramString1, paramString2, "Exception " + localUnsupportedEncodingException.getMessage());
        return false;
      }
      catch (SAXException localSAXException)
      {
        a("parseDeviceAuthenticateUser", paramString1, paramString2, "Exception " + localSAXException.getMessage());
        return false;
      }
      catch (NullPointerException localNullPointerException)
      {
        if (paramString3 == null)
        {
          a("parseDeviceAuthenticateUser", paramString1, paramString2, "null response from server");
          return false;
        }
        a("parseDeviceAuthenticateUser", paramString1, paramString2, "Exception " + localNullPointerException.getMessage());
        return false;
      }
      catch (IOException localIOException)
      {
        a("parseDeviceAuthenticateUser", paramString1, paramString2, "Exception " + localIOException.getMessage());
        return false;
      }
      NodeList localNodeList1 = localDocument.getElementsByTagName("pinEstablished");
      if (localNodeList1.getLength() != 1)
        throw new h("Not exactly one pinEstablished tag");
      boolean bool = Boolean.parseBoolean(localNodeList1.item(0).getChildNodes().item(0).getNodeValue());
      com.paypal.android.MEP.e.a().c(bool);
      NodeList localNodeList2 = localDocument.getElementsByTagName("sessionToken");
      if (localNodeList2.getLength() != 1)
        throw new h("Not exactly one sessionToken tag");
      q = localNodeList2.item(0).getChildNodes().item(0).getNodeValue();
      NodeList localNodeList3 = localDocument.getElementsByTagName("deviceAuthorized");
      if (localNodeList3.getLength() != 1)
        throw new h("Not exactly one deviceAuthorized tag");
      String str = localNodeList3.item(0).getChildNodes().item(0).getNodeValue();
      this.h.put("AuthorizedDevice", str);
      o.a(localDocument);
    }
    while (q.length() <= 0);
    return true;
  }

  private boolean a(Document paramDocument, String paramString)
  {
    this.f = -1;
    if ((paramString == null) || (paramString.length() <= 0))
    {
      this.f = 408;
      return true;
    }
    int i1 = o.c(paramDocument);
    if (paramString == null)
    {
      this.f = 408;
      return true;
    }
    if (paramString.contains("ErrorId="))
      this.f = Integer.parseInt(paramString.substring(paramString.indexOf("ErrorId=") + "ErrorId=".length()));
    while (this.f == -1)
    {
      return false;
      if (i1 != 200)
      {
        this.f = i1;
      }
      else if ((paramString.contains("<SOAP-ENV:Body")) && (!paramString.contains("</SOAP-ENV:Body")))
      {
        this.f = 0;
        return true;
      }
    }
    String str1 = "" + this.f;
    Object localObject1 = j.a("ANDROID_" + this.f);
    if (g("" + this.f))
    {
      String[] arrayOfString = o.a(paramString);
      if (arrayOfString != null)
      {
        Object localObject3 = localObject1;
        int i2 = 0;
        if (i2 < arrayOfString.length)
        {
          StringBuilder localStringBuilder = new StringBuilder().append((String)localObject3).append(" ").append(arrayOfString[i2]);
          if (i2 + 1 == arrayOfString.length);
          for (String str4 = "."; ; str4 = ",")
          {
            localObject3 = str4;
            i2++;
            break;
          }
        }
        localObject1 = localObject3;
      }
    }
    Object localObject2;
    Intent localIntent1;
    if (i(str1))
    {
      Intent localIntent2 = new Intent(PayPalActivity.i).putExtra("FATAL_ERROR_ID", str1);
      if (str1.equals("569060"))
      {
        localObject2 = j.a("ANDROID_no_personal_payments");
        if ((this.e != 11) && (PayPalActivity.a() != null))
          PayPalActivity.a().a((String)PayPalActivity.a.d("CorrelationId"), (String)PayPalActivity.a.d("PayKey"), str1, (String)localObject2, false, true);
        localIntent1 = localIntent2.putExtra("FATAL_ERROR_MESSAGE", (String)localObject2);
      }
    }
    while (true)
    {
      while (true)
      {
        while (true)
        {
          try
          {
            PayPalActivity.a().sendBroadcast(localIntent1);
            return true;
          }
          catch (Exception localException)
          {
            return true;
          }
          if (str1.equals("500000"))
          {
            localObject2 = j.a("ANDROID_10001");
            break;
          }
          if (!str1.equals("580001"))
            break label534;
          try
          {
            if (paramDocument.getElementsByTagName("parameter").item(0).getChildNodes().item(0).getNodeValue().length() == 3)
            {
              String str3 = j.a("ANDROID_580001_4");
              localObject1 = str3;
            }
            localObject2 = localObject1;
          }
          catch (Throwable localThrowable2)
          {
            localObject2 = localObject1;
          }
        }
        break;
        label534: if (str1.equals("520009"))
          try
          {
            if (paramDocument.getElementsByTagName("parameter").item(0).getChildNodes().item(0).getNodeValue().length() > 0)
            {
              String str2 = j.a("ANDROID_520009_2");
              localObject1 = str2;
            }
            localObject2 = localObject1;
          }
          catch (Throwable localThrowable1)
          {
          }
      }
      localObject2 = localObject1;
      break;
      if ((h(str1)) && (this.e != 11))
        localIntent1 = new Intent(PayPalActivity.f).putExtra("FATAL_ERROR_ID", str1).putExtra("ERROR_TIMEOUT", (String)localObject1);
      else if ((h(str1)) && (this.e == 11))
        localIntent1 = new Intent(PayPalActivity.i).putExtra("FATAL_ERROR_ID", str1).putExtra("FATAL_ERROR_MESSAGE", j.a("ANDROID_pin_creation_timeout")).putExtra("ERROR_TIMEOUT", (String)localObject1);
      else
        localIntent1 = new Intent(PayPalActivity.h);
    }
  }

  // ERROR //
  private static byte[] a(InputStream paramInputStream)
  {
    // Byte code:
    //   0: new 1058	java/io/ByteArrayOutputStream
    //   3: dup
    //   4: invokespecial 1059	java/io/ByteArrayOutputStream:<init>	()V
    //   7: astore_1
    //   8: iconst_0
    //   9: istore_2
    //   10: aconst_null
    //   11: astore_3
    //   12: aload_0
    //   13: invokevirtual 1062	java/io/InputStream:read	()I
    //   16: istore 5
    //   18: iload 5
    //   20: iconst_m1
    //   21: if_icmpeq +95 -> 116
    //   24: aload_3
    //   25: ifnonnull +9 -> 34
    //   28: sipush 1024
    //   31: newarray byte
    //   33: astore_3
    //   34: iload_2
    //   35: sipush 1024
    //   38: if_icmpne +16 -> 54
    //   41: aload_1
    //   42: aload_3
    //   43: invokevirtual 1065	java/io/ByteArrayOutputStream:write	([B)V
    //   46: sipush 1024
    //   49: newarray byte
    //   51: astore_3
    //   52: iconst_0
    //   53: istore_2
    //   54: iload 5
    //   56: i2b
    //   57: istore 8
    //   59: aload_3
    //   60: iload_2
    //   61: iload 8
    //   63: bastore
    //   64: iinc 2 1
    //   67: goto -55 -> 12
    //   70: iload 6
    //   72: iload_2
    //   73: if_icmpge +17 -> 90
    //   76: aload_1
    //   77: aload_3
    //   78: iload 6
    //   80: baload
    //   81: invokevirtual 1068	java/io/ByteArrayOutputStream:write	(I)V
    //   84: iinc 6 1
    //   87: goto -17 -> 70
    //   90: aload_1
    //   91: invokevirtual 1071	java/io/ByteArrayOutputStream:size	()I
    //   94: newarray byte
    //   96: astore_3
    //   97: aload_1
    //   98: invokevirtual 1075	java/io/ByteArrayOutputStream:toByteArray	()[B
    //   101: astore_3
    //   102: aload_1
    //   103: invokevirtual 1076	java/io/ByteArrayOutputStream:close	()V
    //   106: aload_3
    //   107: areturn
    //   108: astore 4
    //   110: aload_3
    //   111: areturn
    //   112: astore 7
    //   114: aconst_null
    //   115: areturn
    //   116: iload_2
    //   117: ifeq -27 -> 90
    //   120: iconst_0
    //   121: istore 6
    //   123: goto -53 -> 70
    //
    // Exception table:
    //   from	to	target	type
    //   12	18	108	java/io/IOException
    //   28	34	108	java/io/IOException
    //   41	46	108	java/io/IOException
    //   59	64	108	java/io/IOException
    //   76	84	108	java/io/IOException
    //   97	106	108	java/io/IOException
    //   46	52	112	java/io/IOException
    //   90	97	112	java/io/IOException
  }

  public static final boolean b()
  {
    try
    {
      int i1 = ((String)PayPalActivity.a.h.get("payButtonEnable")).compareToIgnoreCase("true");
      if (i1 == 0)
        return true;
    }
    catch (Exception localException)
    {
    }
    return false;
  }

  public static String c()
  {
    switch (com.paypal.android.MEP.e.a().k())
    {
    case 1:
    default:
      return "https://mobileclient.paypal.com/";
    case 2:
      return "";
    case 0:
      return "https://mobileclient.sandbox.paypal.com/";
    case 3:
    }
    return "https://www.stage2mb101.paypal.com:10521/";
  }

  public static String c(String paramString)
  {
    if (paramString != null)
      paramString = paramString.replace("&", "&amp;").replace("<", "&lt;").replace(">", "&gt;").replace("\"", "&quot;").replace("'", "&apos;");
    return paramString;
  }

  public static void d()
  {
    if (l == null)
      l = new d();
    if (PayPalActivity.a == null)
      PayPalActivity.a = new c();
    if (PayPalActivity.a.h == null)
      PayPalActivity.a.h = new Hashtable();
    if (com.paypal.android.MEP.e.a().k() == 2)
    {
      PayPalActivity.a.h.put("payButtonEnable", "true");
      com.paypal.android.MEP.e.a().a(true);
      return;
    }
    if (!PayPalActivity.a.j.isAlive())
      PayPalActivity.a.j.start();
    PayPalActivity.a.a(8);
  }

  public static String e(String paramString)
  {
    if ((paramString == null) || (paramString.length() == 0))
      paramString = "";
    while (true)
    {
      return paramString;
      if (paramString.startsWith("+"))
      {
        paramString = paramString.substring(1);
        for (String str : p)
          if (paramString.startsWith(str))
            return paramString.substring(str.length());
      }
    }
  }

  public static void e()
  {
    if (PayPalActivity.a == null)
      return;
    c localc = PayPalActivity.a;
    localc.i = true;
    while (localc.j.isAlive())
    {
      com.paypal.android.MEP.e.a("NetworkHandler", "waiting for thread to stop");
      try
      {
        Thread.sleep(100L);
      }
      catch (InterruptedException localInterruptedException)
      {
        com.paypal.android.MEP.e.a("NetworkHandler", "waiting for thread to stop");
      }
    }
    com.paypal.android.MEP.e.a("NetworkHandler", "thread has stopped");
    PayPalActivity.a = null;
  }

  public static c f()
  {
    return PayPalActivity.a;
  }

  public static String f(String paramString)
  {
    if ((paramString != null) && (paramString.length() > 0) && (paramString.charAt(0) == '+'))
    {
      String str1 = paramString.substring(1);
      for (String str2 : p)
        if (str1.startsWith(str2))
          return str2;
    }
    return m();
  }

  private static boolean g(String paramString)
  {
    String[] arrayOfString = { "560027", "580022", "580023" };
    for (int i1 = 0; ; i1++)
    {
      int i2 = arrayOfString.length;
      boolean bool = false;
      if (i1 < i2)
      {
        if (arrayOfString[i1].equals(paramString))
          bool = true;
      }
      else
        return bool;
    }
  }

  private static boolean h(String paramString)
  {
    String[] arrayOfString = { "10818", "10897", "10898", "10899", "520003" };
    for (int i1 = 0; ; i1++)
    {
      int i2 = arrayOfString.length;
      boolean bool = false;
      if (i1 < i2)
      {
        if (arrayOfString[i1].equals(paramString))
          bool = true;
      }
      else
        return bool;
    }
  }

  public static final DefaultHttpClient i()
  {
    if (com.paypal.android.MEP.e.a().k() != 3)
      return new DefaultHttpClient();
    SchemeRegistry localSchemeRegistry = new SchemeRegistry();
    localSchemeRegistry.register(new Scheme("http", PlainSocketFactory.getSocketFactory(), 80));
    try
    {
      localSchemeRegistry.register(new Scheme("https", new e(), 443));
      BasicHttpParams localBasicHttpParams = new BasicHttpParams();
      localBasicHttpParams.setParameter("http.conn-manager.max-total", Integer.valueOf(30));
      localBasicHttpParams.setParameter("http.conn-manager.max-per-route", new ConnPerRouteBean(30));
      localBasicHttpParams.setParameter("http.protocol.expect-continue", Boolean.valueOf(false));
      HttpProtocolParams.setVersion(localBasicHttpParams, HttpVersion.HTTP_1_1);
      return new DefaultHttpClient(new ThreadSafeClientConnManager(localBasicHttpParams, localSchemeRegistry), localBasicHttpParams);
    }
    catch (KeyManagementException localKeyManagementException)
    {
      while (true)
        localKeyManagementException.printStackTrace();
    }
    catch (NoSuchAlgorithmException localNoSuchAlgorithmException)
    {
      while (true)
        localNoSuchAlgorithmException.printStackTrace();
    }
    catch (KeyStoreException localKeyStoreException)
    {
      while (true)
        localKeyStoreException.printStackTrace();
    }
    catch (UnrecoverableKeyException localUnrecoverableKeyException)
    {
      while (true)
        localUnrecoverableKeyException.printStackTrace();
    }
  }

  private static boolean i(String paramString)
  {
    String[] arrayOfString = { "10001", "10004", "10800", "10801", "10802", "10804", "10805", "10806", "10808", "10809", "10810", "10811", "10812", "10813", "10815", "10819", "10820", "10821", "10822", "10823", "10824", "10825", "10849", "10850", "10858", "10859", "10860", "10861", "10862", "10863", "10864", "10867", "99999", "520002", "520009", "539041", "540031", "550001", "550006", "559044", "560027", "569000", "569042", "569056", "569060", "579007", "579017", "579033", "579040", "579045", "579047", "579048", "580001", "580022", "580023", "580028", "580030", "580031", "580032", "580033", "580034", "589009", "589019", "500000" };
    for (int i1 = 0; ; i1++)
    {
      int i2 = arrayOfString.length;
      boolean bool = false;
      if (i1 < i2)
      {
        if (arrayOfString[i1].equals(paramString))
          bool = true;
      }
      else
        return bool;
    }
  }

  private static String j(String paramString)
  {
    try
    {
      Object localObject;
      switch (com.paypal.android.MEP.e.a().k())
      {
      case 1:
      case 2:
      default:
        localObject = new ByteArrayInputStream(n);
      case 0:
      case 3:
      }
      while (true)
      {
        X509Certificate localX509Certificate = (X509Certificate)CertificateFactory.getInstance("X.509").generateCertificate((InputStream)localObject);
        ((InputStream)localObject).close();
        localX509Certificate.checkValidity(new Date());
        RSAPublicKey localRSAPublicKey = (RSAPublicKey)localX509Certificate.getPublicKey();
        Cipher localCipher = Cipher.getInstance("RSA/ECB/PKCS1Padding");
        localCipher.init(1, localRSAPublicKey);
        return c(a.a(localCipher.doFinal(paramString.getBytes()), 8));
        localObject = new ByteArrayInputStream(o);
        continue;
        ByteArrayInputStream localByteArrayInputStream = new ByteArrayInputStream(m);
        localObject = localByteArrayInputStream;
      }
    }
    catch (FileNotFoundException localFileNotFoundException)
    {
      com.paypal.android.MEP.e.b("NetworkHandler", "encryptPassword faulted " + localFileNotFoundException.getMessage());
      return "";
    }
    catch (CertificateException localCertificateException)
    {
      while (true)
        com.paypal.android.MEP.e.b("NetworkHandler", "encryptPassword faulted " + localCertificateException.getMessage());
    }
    catch (IOException localIOException)
    {
      while (true)
        com.paypal.android.MEP.e.b("NetworkHandler", "encryptPassword faulted " + localIOException.getMessage());
    }
    catch (NoSuchAlgorithmException localNoSuchAlgorithmException)
    {
      while (true)
        com.paypal.android.MEP.e.b("NetworkHandler", "encryptPassword faulted " + localNoSuchAlgorithmException.getMessage());
    }
    catch (NoSuchPaddingException localNoSuchPaddingException)
    {
      while (true)
        com.paypal.android.MEP.e.b("NetworkHandler", "encryptPassword faulted " + localNoSuchPaddingException.getMessage());
    }
    catch (InvalidKeyException localInvalidKeyException)
    {
      while (true)
        com.paypal.android.MEP.e.b("NetworkHandler", "encryptPassword faulted " + localInvalidKeyException.getMessage());
    }
    catch (IllegalBlockSizeException localIllegalBlockSizeException)
    {
      while (true)
        com.paypal.android.MEP.e.b("NetworkHandler", "encryptPassword faulted " + localIllegalBlockSizeException.getMessage());
    }
    catch (BadPaddingException localBadPaddingException)
    {
      while (true)
        com.paypal.android.MEP.e.b("NetworkHandler", "encryptPassword faulted " + localBadPaddingException.getMessage());
    }
  }

  private boolean k(String paramString)
  {
    try
    {
      boolean bool = a(DocumentBuilderFactory.newInstance().newDocumentBuilder().parse(new ByteArrayInputStream(paramString.getBytes("UTF-8"))), paramString);
      Object localObject = null;
      if (!bool)
        return false;
    }
    catch (ParserConfigurationException localParserConfigurationException)
    {
      if (localParserConfigurationException == null)
        com.paypal.android.MEP.e.b("NetworkHandler", "Response contains an error, " + paramString);
      while (true)
      {
        return true;
        com.paypal.android.MEP.e.b("NetworkHandler", "Exception checking for error in response, " + paramString);
      }
    }
    catch (IOException localIOException)
    {
      break label40;
    }
    catch (SAXException localSAXException)
    {
      label40: break label40;
    }
  }

  public static String m()
  {
    String str = Locale.getDefault().getCountry().toUpperCase();
    if (str.compareTo("US") == 0)
      return "1";
    if (str.compareTo("CA") == 0)
      return "1";
    if (str.compareTo("GB") == 0)
      return "44";
    if (str.compareTo("AU") == 0)
      return "61";
    if (str.compareTo("FR") == 0)
      return "33";
    if (str.compareTo("ES") == 0)
      return "34";
    if (str.compareTo("IT") == 0)
      return "39";
    return "1";
  }

  public static String n()
  {
    return q;
  }

  private static String p()
  {
    switch (com.paypal.android.MEP.e.a().k())
    {
    case 1:
    default:
      return "https://svcs.paypal.com/AdaptivePayments/";
    case 2:
      return "";
    case 0:
      return "https://svcs.sandbox.paypal.com/AdaptivePayments/";
    case 3:
    }
    return "https://www.stage2mb101.paypal.com:10279/AdaptivePayments/";
  }

  private static String q()
  {
    switch (com.paypal.android.MEP.e.a().k())
    {
    case 1:
    default:
      return "GMAdapter";
    case 2:
      return "";
    case 0:
    case 3:
    }
    return "GMAdapter";
  }

  private static String r()
  {
    switch (com.paypal.android.MEP.e.a().k())
    {
    case 1:
    default:
      return "GMAdapter";
    case 2:
      return "";
    case 0:
    case 3:
    }
    return "GMAdapter";
  }

  // ERROR //
  private boolean s()
  {
    // Byte code:
    //   0: aload_0
    //   1: getfield 571	com/paypal/android/a/c:h	Ljava/util/Hashtable;
    //   4: invokestatic 1521	com/paypal/android/a/o:g	(Ljava/util/Hashtable;)Ljava/lang/String;
    //   7: astore_3
    //   8: new 508	java/lang/StringBuilder
    //   11: dup
    //   12: invokespecial 509	java/lang/StringBuilder:<init>	()V
    //   15: invokestatic 755	com/paypal/android/a/c:p	()Ljava/lang/String;
    //   18: invokevirtual 515	java/lang/StringBuilder:append	(Ljava/lang/String;)Ljava/lang/StringBuilder;
    //   21: ldc_w 1523
    //   24: invokevirtual 515	java/lang/StringBuilder:append	(Ljava/lang/String;)Ljava/lang/StringBuilder;
    //   27: invokevirtual 520	java/lang/StringBuilder:toString	()Ljava/lang/String;
    //   30: astore 4
    //   32: aload_0
    //   33: aload_3
    //   34: aload 4
    //   36: iconst_0
    //   37: invokespecial 529	com/paypal/android/a/c:a	(Ljava/lang/String;Ljava/lang/String;Z)Ljava/lang/String;
    //   40: astore 5
    //   42: aload_0
    //   43: aload 5
    //   45: invokespecial 641	com/paypal/android/a/c:k	(Ljava/lang/String;)Z
    //   48: ifeq +59 -> 107
    //   51: ldc_w 1525
    //   54: aload 4
    //   56: aload_3
    //   57: aload 5
    //   59: invokestatic 569	com/paypal/android/a/c:a	(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
    //   62: aload 5
    //   64: aload_0
    //   65: getfield 571	com/paypal/android/a/c:h	Ljava/util/Hashtable;
    //   68: invokestatic 1527	com/paypal/android/a/o:a	(Ljava/lang/String;Ljava/util/Hashtable;)Z
    //   71: pop
    //   72: iconst_0
    //   73: ireturn
    //   74: astore_1
    //   75: ldc_w 588
    //   78: new 508	java/lang/StringBuilder
    //   81: dup
    //   82: invokespecial 509	java/lang/StringBuilder:<init>	()V
    //   85: ldc_w 631
    //   88: invokevirtual 515	java/lang/StringBuilder:append	(Ljava/lang/String;)Ljava/lang/StringBuilder;
    //   91: aload_1
    //   92: invokevirtual 629	com/paypal/android/a/p:getMessage	()Ljava/lang/String;
    //   95: invokevirtual 515	java/lang/StringBuilder:append	(Ljava/lang/String;)Ljava/lang/StringBuilder;
    //   98: invokevirtual 520	java/lang/StringBuilder:toString	()Ljava/lang/String;
    //   101: invokestatic 489	com/paypal/android/MEP/e:b	(Ljava/lang/String;Ljava/lang/String;)I
    //   104: pop
    //   105: iconst_0
    //   106: ireturn
    //   107: aload 5
    //   109: aload_0
    //   110: getfield 571	com/paypal/android/a/c:h	Ljava/util/Hashtable;
    //   113: invokestatic 1527	com/paypal/android/a/o:a	(Ljava/lang/String;Ljava/util/Hashtable;)Z
    //   116: pop
    //   117: iconst_1
    //   118: ireturn
    //   119: astore 7
    //   121: iconst_0
    //   122: ireturn
    //
    // Exception table:
    //   from	to	target	type
    //   0	8	74	com/paypal/android/a/p
    //   62	72	119	java/lang/Throwable
  }

  private boolean t()
  {
    String str1 = o.h(this.h);
    String str2 = p() + "GetAvailableShippingAddresses/";
    String str3 = a(str1, str2, false);
    if (k(str3))
      a("getAddresses", str2, str1, str3);
    try
    {
      o.g(str3, this.h);
      return false;
      o.g(str3, this.h);
      return true;
    }
    catch (Throwable localThrowable)
    {
    }
    return false;
  }

  private boolean u()
  {
    String str1 = o.b(this.h);
    String str2 = p() + "Preapproval/";
    String str3 = a(str1, str2, false);
    if (k(str3))
      a("createPreapprovalRequest", str2, str1, str3);
    try
    {
      o.b(str3, this.h);
      return false;
      o.b(str3, this.h);
      return true;
    }
    catch (Throwable localThrowable)
    {
    }
    return false;
  }

  private boolean v()
  {
    String str = a(o.d(this.h), p() + "PreapprovalDetails/", false);
    if (k(str));
    try
    {
      o.c(str, this.h);
      return false;
      o.c(str, this.h);
      if (this.h.get("Approved").equals("true"))
      {
        Intent localIntent = new Intent(PayPalActivity.i).putExtra("FATAL_ERROR_ID", "-1").putExtra("FATAL_ERROR_MESSAGE", j.a("ANDROID_preapproval_already_approved"));
        PayPalActivity.a().a((String)PayPalActivity.a.d("CorrelationId"), (String)PayPalActivity.a.d("PayKey"), "-1", j.a("ANDROID_preapproval_already_approved"), false, true);
        PayPalActivity.a().sendBroadcast(localIntent);
        return false;
      }
      return true;
    }
    catch (Throwable localThrowable)
    {
    }
    return false;
  }

  private boolean w()
  {
    String str1 = o.c(this.h);
    String str2 = p() + "ConfirmPreapproval/";
    String str3 = a(str1, str2, false);
    if (k(str3))
      a("confirmPreapprovalRequest", str2, str1, str3);
    try
    {
      o.d(str3, this.h);
      return false;
      o.d(str3, this.h);
      return true;
    }
    catch (Throwable localThrowable)
    {
    }
    return false;
  }

  private static boolean x()
  {
    String str = ((TelephonyManager)com.paypal.android.MEP.e.a().e().getSystemService("phone")).getDeviceId();
    if (str == null)
      str = ((WifiManager)com.paypal.android.MEP.e.a().e().getSystemService("wifi")).getConnectionInfo().getMacAddress();
    if ((com.paypal.android.MEP.e.a().k() == 1) && (str.equals("000000000000000")))
    {
      Intent localIntent = new Intent(PayPalActivity.i).putExtra("FATAL_ERROR_ID", "-1").putExtra("FATAL_ERROR_MESSAGE", j.a("ANDROID_simulator_payment_block"));
      PayPalActivity.a().a((String)PayPalActivity.a.d("CorrelationId"), (String)PayPalActivity.a.d("PayKey"), "-1", j.a("ANDROID_simulator_payment_block"), false, true);
      PayPalActivity.a().sendBroadcast(localIntent);
      return false;
    }
    return true;
  }

  private Hashtable y()
  {
    String str1;
    try
    {
      str1 = o.f(this.h);
      if (str1 == null)
        return null;
    }
    catch (p localp)
    {
      com.paypal.android.MEP.e.b("NetworkHandler", "Exception " + localp.getMessage());
      return null;
    }
    String str2 = p() + "Pay/";
    String str3 = a(str1, str2, false);
    Intent localIntent2;
    if (k(str3))
    {
      a("createPayment", str2, str1, str3);
      if (str3.contains("<errorId>580022</errorId>"))
      {
        String str4 = j.a("ANDROID_580022");
        localIntent2 = new Intent(PayPalActivity.i).putExtra("FATAL_ERROR_ID", "580022").putExtra("FATAL_ERROR_MESSAGE", str4);
        PayPalActivity.a().a((String)PayPalActivity.a.d("CorrelationId"), (String)PayPalActivity.a.d("PayKey"), "580022", str4, false, true);
      }
    }
    try
    {
      PayPalActivity.a().sendBroadcast(localIntent2);
      label194: return null;
      return null;
      Intent localIntent1;
      if (o.a(str3, this.h))
        if ((!str3.contains("defaultFundingPlan")) && (((String)this.h.get("ActionType")).equals("CREATE")))
        {
          localIntent1 = new Intent(PayPalActivity.i).putExtra("FATAL_ERROR_ID", "589009").putExtra("FATAL_ERROR_MESSAGE", j.a("ANDROID_589009"));
          PayPalActivity.a().a((String)PayPalActivity.a.d("CorrelationId"), (String)PayPalActivity.a.d("PayKey"), "589009", j.a("ANDROID_589009"), false, true);
        }
      try
      {
        PayPalActivity.a().sendBroadcast(localIntent1);
        label325: return null;
        return this.h;
        this.f = -1;
        return null;
      }
      catch (Exception localException1)
      {
        break label325;
      }
    }
    catch (Exception localException2)
    {
      break label194;
    }
  }

  private Hashtable z()
  {
    String str1 = o.e(this.h);
    String str2 = p() + "GetFundingPlans/";
    String str3 = a(str1, str2, false);
    if (k(str3))
      a("createFundingRequest", str2, str1, str3);
    try
    {
      o.e(str3, this.h);
      label65: return null;
      Intent localIntent;
      if (o.e(str3, this.h))
        if (((Vector)this.h.get("FundingPlans")).size() == 0)
          localIntent = new Intent(PayPalActivity.i).putExtra("FATAL_ERROR_ID", "589009").putExtra("FATAL_ERROR_MESSAGE", j.a("ANDROID_589009"));
      try
      {
        PayPalActivity.a().sendBroadcast(localIntent);
        label138: return null;
        return this.h;
        this.f = -1;
        return null;
      }
      catch (Exception localException)
      {
        break label138;
      }
    }
    catch (Throwable localThrowable)
    {
      break label65;
    }
  }

  public final void a()
  {
  }

  public final void a(int paramInt)
  {
    this.g = paramInt;
    this.e = paramInt;
  }

  public final void a(int paramInt, Object paramObject)
  {
    com.paypal.android.MEP.e locale = com.paypal.android.MEP.e.a();
    PayPalActivity localPayPalActivity = PayPalActivity.a();
    c localc = PayPalActivity.a;
    Hashtable localHashtable;
    switch (paramInt)
    {
    case 6:
    case 8:
    case 10:
    case 11:
    case 12:
    default:
      return;
    case 3:
      if (((String)this.h.get("quickPay")).equals("true"))
      {
        a(4);
        return;
      }
      if (locale.n())
      {
        a(7);
        return;
      }
      localPayPalActivity.sendBroadcast(new Intent(PayPalActivity.g));
      return;
    case 4:
      String str1 = (String)localc.d("PayKey");
      String str2 = (String)localc.d("PaymentExecStatus");
      if ((locale.E()) && (!locale.v()))
      {
        localPayPalActivity.a(true);
        localPayPalActivity.a(str1, str2, false);
        com.paypal.android.MEP.a.k.a = (String)paramObject;
        com.paypal.android.MEP.a.h.b(7);
        return;
      }
      localPayPalActivity.a(str1, str2, true);
      return;
    case 9:
      com.paypal.android.MEP.a.q.a = (String)paramObject;
      com.paypal.android.MEP.a.h.a(4);
      return;
    case 5:
      a("FundingPlanId", "0");
      if (locale.n())
      {
        a(7);
        return;
      }
      localPayPalActivity.sendBroadcast(new Intent(PayPalActivity.g));
      return;
    case 7:
      if (locale.k() == 2)
      {
        localHashtable = com.paypal.android.MEP.a.a.a;
        label276: Vector localVector = (Vector)localHashtable.get("AvailableAddresses");
        if ((localVector == null) || (localVector.size() <= 0))
          break label478;
        com.paypal.android.a.a.h localh = (com.paypal.android.a.a.h)localVector.get(0);
        if ((String)d("ShippingAddressId") != null)
          break label478;
        a("ShippingAddressId", localh.h());
      }
      break;
    case 13:
    }
    label478: for (int i1 = l(); ; i1 = 0)
    {
      if (i1 == 0)
        localPayPalActivity.sendBroadcast(new Intent(PayPalActivity.g));
      if (i1 != -1)
        break;
      Intent localIntent = new Intent(PayPalActivity.i).putExtra("FATAL_ERROR_ID", "-1").putExtra("FATAL_ERROR_MESSAGE", locale.H());
      localPayPalActivity.a((String)localc.d("CorrelationId"), (String)localc.d("PayKey"), "-1", locale.H(), false, true);
      localPayPalActivity.sendBroadcast(localIntent);
      return;
      com.paypal.android.MEP.a.a.a = (Hashtable)paramObject;
      localHashtable = localc.h;
      break label276;
      localPayPalActivity.sendBroadcast(new Intent(PayPalActivity.g));
      return;
    }
  }

  public final void a(String paramString)
  {
    Intent localIntent = new Intent(PayPalActivity.i).putExtra("FATAL_ERROR_ID", "-1").putExtra("FATAL_ERROR_MESSAGE", paramString);
    PayPalActivity.a().a((String)PayPalActivity.a.d("CorrelationId"), (String)PayPalActivity.a.d("PayKey"), "-1", paramString, false, true);
    PayPalActivity.a().sendBroadcast(localIntent);
  }

  public final void a(String paramString, Object paramObject)
  {
    if (paramObject != null)
    {
      this.h.put(paramString, paramObject);
      return;
    }
    this.h.remove(paramString);
  }

  public final void b(String paramString)
  {
    com.paypal.android.MEP.e locale = com.paypal.android.MEP.e.a();
    if (locale.k() != 1)
      return;
    com.paypal.android.MEP.e.a("MPL Tracking", "Post: " + paramString);
    String str1 = "Device";
    String str2;
    label83: StringBuilder localStringBuilder1;
    StringBuilder localStringBuilder2;
    if ((locale.s() == 0) || (locale.s() == 3))
    {
      str1 = "Password";
      str2 = "Simple";
      if (locale.A() != 3)
        break label324;
      str2 = "Preapproval";
      localStringBuilder1 = new StringBuilder("https://sstats.paypal-metrics.com/b/ss/paypalwireless/5/H.5--WAP/12345?pageName=android/");
      localStringBuilder1.append("mpl-").append(paramString);
      localStringBuilder1.append("&c1=").append(Locale.getDefault().getCountry().toUpperCase());
      localStringBuilder1.append("&c4=ver").append(com.paypal.android.MEP.e.x());
      localStringBuilder1.append("&c5=").append("Android");
      localStringBuilder1.append("&c6=").append(locale.e().getPackageName());
      localStringBuilder1.append("&c7=").append(str1);
      localStringBuilder1.append("&c9=").append(str2);
      localStringBuilder2 = localStringBuilder1.append("&c10=");
      if (!locale.n())
        break label356;
    }
    label324: label356: for (String str3 = "Enabled"; ; str3 = "Disabled")
    {
      localStringBuilder2.append(str3);
      String str4 = localStringBuilder1.toString();
      com.paypal.android.MEP.e.a("NetworkHandler", "queueTrackingPost (), queue tracking " + str4);
      synchronized (k)
      {
        k.add(str4);
        k.notifyAll();
        return;
      }
      if (locale.s() != 1)
        break;
      str1 = "PIN";
      break;
      if (locale.A() == 2)
      {
        str2 = "Chained";
        break label83;
      }
      if (locale.A() != 1)
        break label83;
      str2 = "Parallel";
      break label83;
    }
  }

  public final Object d(String paramString)
  {
    return this.h.get(paramString);
  }

  public final String g()
  {
    if (this.f == 0)
      this.f = 408;
    return j.a("ANDROID_" + this.f);
  }

  public final Hashtable h()
  {
    return this.h;
  }

  public final void j()
  {
    com.paypal.android.MEP.e locale = com.paypal.android.MEP.e.a();
    com.paypal.android.MEP.h localh = locale.c();
    this.h.remove("ShippingAddressId");
    a("PaymentCurrencyID", localh.a());
    a("CancelUrl", locale.i());
    a("ReturnUrl", locale.j());
    String str;
    switch (locale.m())
    {
    default:
      str = "EACHRECEIVER";
    case 1:
    case 2:
    case 3:
    }
    while (true)
    {
      a("FeesPayer", str);
      a("ActionType", "CREATE");
      a("Receivers", localh.b());
      if ((localh.c() != null) && (!localh.c().equals("")))
        a("IpnNotificationUrl", localh.c());
      if ((localh.d() != null) && (!localh.d().equals("")))
        a("Memo", localh.d());
      a("delegate", this);
      PayPalActivity.a.a(3);
      return;
      str = "SENDER";
      continue;
      str = "PRIMARYRECEIVER";
      continue;
      str = "SECONDARYONLY";
    }
  }

  public final void k()
  {
    a("PreapprovalKey", com.paypal.android.MEP.e.a().g());
    a("delegate", this);
    PayPalActivity.a.a(13);
  }

  public final int l()
  {
    com.paypal.android.MEP.e locale = com.paypal.android.MEP.e.a();
    label62: com.paypal.android.MEP.h localh1;
    ArrayList localArrayList;
    label393: label399: Vector localVector3;
    int i3;
    int i4;
    if ((locale.o()) && (locale.n() == true))
    {
      String str1 = (String)this.h.get("ShippingAddressId");
      Hashtable localHashtable;
      int i1;
      com.paypal.android.a.a.h localh;
      if (com.paypal.android.MEP.e.a().k() == 2)
      {
        localHashtable = com.paypal.android.MEP.a.a.a;
        Vector localVector1 = (Vector)localHashtable.get("AvailableAddresses");
        i1 = 0;
        if (i1 >= localVector1.size())
          break label399;
        localh = (com.paypal.android.a.a.h)localVector1.elementAt(i1);
        if (!localh.h().equals(str1))
          break label393;
      }
      b localb;
      Vector localVector2;
      while (true)
      {
        localb = new b();
        String str2 = localh.d();
        String str3 = localh.e();
        String str4 = localh.b();
        String str5 = localh.g();
        String str6 = localh.f();
        String str7 = localh.c();
        localb.a(str2);
        localb.b(str3);
        localb.c(str4);
        localb.d(str5);
        localb.e(str6);
        localb.f(str7);
        localh1 = com.paypal.android.MEP.e.a().c();
        localArrayList = localh1.b();
        localVector2 = new Vector();
        for (int i2 = 0; i2 < localh1.b().size(); i2++)
        {
          com.paypal.android.MEP.m localm3 = (com.paypal.android.MEP.m)localh1.b().get(i2);
          com.paypal.android.MEP.d locald3 = new com.paypal.android.MEP.d();
          locald3.a = new com.paypal.android.MEP.c();
          locald3.b = localm3.a();
          if (localm3.c().a() != null)
            locald3.a.b(localm3.c().a());
          if (localm3.c().b() != null)
            locald3.a.c(localm3.c().b());
          if (localh1.a() != null)
            locald3.a.a(localh1.a());
          if (localm3.b() != null)
            locald3.a.a(localm3.b());
          localVector2.add(locald3);
        }
        localHashtable = this.h;
        break;
        i1++;
        break label62;
        localh = null;
      }
      localVector3 = PayPalActivity.a().a(localb, localh1.a(), localVector2);
      if (localVector3 == null)
        return -1;
      if (localVector3.size() == localArrayList.size())
      {
        i3 = 0;
        i4 = 0;
        if (i3 < localVector3.size())
        {
          com.paypal.android.MEP.m localm2 = (com.paypal.android.MEP.m)localArrayList.get(i3);
          com.paypal.android.MEP.d locald2 = (com.paypal.android.MEP.d)localVector3.elementAt(i3);
          BigDecimal localBigDecimal1;
          BigDecimal localBigDecimal2;
          if (localm2.c().a() != null)
          {
            localBigDecimal1 = localm2.c().a();
            if (localm2.c().b() == null)
              break label623;
            localBigDecimal2 = localm2.c().b();
            label524: if (localm2.b() == null)
              break label638;
          }
          BigDecimal localBigDecimal4;
          BigDecimal localBigDecimal5;
          label623: label638: for (BigDecimal localBigDecimal3 = localm2.b(); ; localBigDecimal3 = new BigDecimal("0.0"))
          {
            String str8 = localm2.a();
            localBigDecimal4 = locald2.a.b();
            localBigDecimal5 = locald2.a.c();
            BigDecimal localBigDecimal6 = locald2.a.a();
            String str9 = locald2.b;
            if ((localBigDecimal6 == localBigDecimal3) && (str8.equals(str9)))
              break label653;
            throw new IllegalArgumentException();
            localBigDecimal1 = new BigDecimal("0.0");
            break;
            localBigDecimal2 = new BigDecimal("0.0");
            break label524;
          }
          label653: if ((localBigDecimal4 == localBigDecimal1) && (localBigDecimal5 == localBigDecimal2))
            break label887;
        }
      }
    }
    label887: for (int i6 = 1; ; i6 = i4)
    {
      i3++;
      i4 = i6;
      break;
      int i5 = 0;
      if (i4 != 0)
      {
        while (i5 < localVector3.size())
        {
          com.paypal.android.MEP.m localm1 = (com.paypal.android.MEP.m)localArrayList.get(i5);
          com.paypal.android.MEP.d locald1 = (com.paypal.android.MEP.d)localVector3.elementAt(i5);
          localm1.c().b(locald1.a.c());
          localm1.c().a(locald1.a.b());
          i5++;
        }
        a("PaymentCurrencyID", localh1.a());
        a("Receivers", localh1.b());
        if ((localh1.c() != null) && (!localh1.c().equals("")))
          a("IpnNotificationUrl", localh1.c());
        if ((localh1.d() != null) && (!localh1.d().equals("")))
          a("Memo", localh1.d());
        a("ActionType", "CREATE");
        a("delegate", this);
        a(3);
        return 1;
        throw new IllegalArgumentException();
      }
      return 0;
    }
  }
}

/* Location:           D:\Studium\Bachelorarbeit\BA Marcus Wobig\BA\BA\Decompiler\PicturePassword APK\Programm\PicturePassword_dex2jar.jar
 * Qualified Name:     com.paypal.android.a.c
 * JD-Core Version:    0.6.2
 */